package com.chatplus.application.domain.request;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Pattern;

/**
 * 注册请求
 *
 * @author chj
 * @date 2023/6/8
 **/
@JsonIgnoreProperties(ignoreUnknown = true)
@Schema(description = "注册请求参数")
public class AccountRegisterRequest {

    @JsonProperty("old_pass")
    @NotEmpty(message = "旧密码")
    private String oldPass;
    @JsonProperty("username")
    @NotEmpty(message = "用户名不能为空")
    private String username;
    @JsonProperty("password")
    @NotEmpty(message = "密码不能为空")
    private String password;
    @JsonProperty("code")
    @NotEmpty(message = "验证码不能为空")
    private String code;
    @JsonProperty("repass")
    @NotEmpty(message = "密码不能为空")
    private String repass;

    @JsonProperty("invite_code")
    private String inviteCode;

    public String getOldPass() {
        return oldPass;
    }

    public void setOldPass(String oldPass) {
        this.oldPass = oldPass;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getRepass() {
        return repass;
    }

    public void setRepass(String repass) {
        this.repass = repass;
    }

    public String getInviteCode() {
        return inviteCode;
    }

    public void setInviteCode(String inviteCode) {
        this.inviteCode = inviteCode;
    }
}
